﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;

namespace SpaceNeedle.x6473.WindowsPhone.Common
{
    public class ThemeInfo
    {
        public static string CurrentThemeName
        {
            get
            {
                if(IsLightTheme)
                {
                    return "Light";
                }

                return "Dark";
            }
        }

        public static bool IsDarkTheme
        {
            get{ return Visibility.Visible == (Visibility)Application.Current.Resources["PhoneDarkThemeVisibility"];}
        }

        public static bool IsLightTheme
        {
            get { return Visibility.Visible == (Visibility)Application.Current.Resources["PhoneLightThemeVisibility"]; }
        }

        public static Color AccentColor
        {
            get { return (Color)Application.Current.Resources["PhoneAccentColor"]; }
        }

        public static string AccentHtmlColor
        {
            get { return AccentColor.ToString().ToLower().Replace("#ff", "#"); }
        }
    }
}
